import request from '@/utils/request'

// 查询错题库列表
export function listWrongQuestionBank(query) {
  return request({
    url: '/edu/wrong/question/bank/list',
    method: 'get',
    params: query
  })
}

// 查询错题库详细
export function getWrongQuestionBank(id) {
  return request({
    url: '/edu/wrong/question/bank/' + id,
    method: 'get'
  })
}

// 新增错题库
export function addWrongQuestionBank(data) {
  return request({
    url: '/edu/wrong/question/bank',
    method: 'post',
    data: data
  })
}

// 修改错题库
export function updateWrongQuestionBank(data) {
  return request({
    url: '/edu/wrong/question/bank',
    method: 'put',
    data: data
  })
}

// 删除错题库
export function delWrongQuestionBank(id) {
  return request({
    url: '/edu/wrong/question/bank/' + id,
    method: 'delete'
  })
}
